<title>提现</title>
<link rel="stylesheet" href="/assets/assets(home)/css/money.css">


<!-- <header class="mui-bar mui-bar-nav mui-bar-nav-bg">
    <a id="icon-menu" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">提现</h1>
</header> -->

<!-- <div class="tabs">
    <ul>
        <li class="active">全部</li>
        <li>待提现</li>
        <li>已提现</li>
    </ul>
</div> -->

{foreach $commis as $itemc}
{if $itemc['parentid'] == $AutoLogin['id']}
<div class="list">
    {foreach $order as $itemo}
    {if $itemo['id'] == $itemc['orderid']}
    <div class="item">
        <div class="content">
            <a href="{:url('home/search/details')}?subid={$itemo.subject.id}">
                <div class="thumb">
                    <img src="{$itemo.subject.thumbs}" alt="">
                </div>
                <div class="info">
                    <div class="code">
                        <span>订单号：</span>{$itemc.busorder.code}
                    </div>
                    <div class="name">
                        <span>课程名称：</span>{$itemo.subject.title}
                    </div>

                    <div class="user">
                        <span>被推荐人：</span>{$itemc.bus.nickname}
                    </div>

                    <div class="price">
                        <span>可提现：</span>￥{$itemc.amount}
                    </div>
                </div>
            </a>
        </div>

        <div class="footer">
            <div class="btn-list">
                <button class="btn mui-btn-warning">提现</button>
            </div>
        </div>
    </div>
    {/if}
    {/foreach}
</div>
{/if}
{/foreach}

<script>
    //修改浏览器自带的后退按钮
    window.history.pushState(null, null, ``);

    window.addEventListener('popstate', function (e) {
        e.preventDefault()
        location.href = `{:url('/home/business/center')}`
    }, false)
</script>